.class Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;
.super Ljava/lang/Object;
.source "PublishAppActivity.java"

# interfaces
.implements Lretrofit/Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/community/activity/PublishAppActivity;->publishApp()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lretrofit/Callback",
        "<",
        "Lorg/json/JSONObject;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    .prologue
    .line 651
    iput-object p1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public failure(Lretrofit/RetrofitError;)V
    .registers 4
    .param p1, "arg0"    # Lretrofit/RetrofitError;

    .prologue
    .line 655
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->getContext()Landroid/content/Context;
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1900(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Landroid/content/Context;

    move-result-object v0

    const-string v1, "CommunityEditAppFailure"

    invoke-static {v0, v1}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 657
    const v0, 0x7f0c004e

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    .line 658
    iget-object v0, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->hideDialog()V
    invoke-static {v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1300(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)V

    .line 659
    return-void
.end method

.method public bridge synthetic success(Ljava/lang/Object;Lretrofit/client/Response;)V
    .registers 3

    .prologue
    .line 651
    check-cast p1, Lorg/json/JSONObject;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->success(Lorg/json/JSONObject;Lretrofit/client/Response;)V

    return-void
.end method

.method public success(Lorg/json/JSONObject;Lretrofit/client/Response;)V
    .registers 6
    .param p1, "jsonData"    # Lorg/json/JSONObject;
    .param p2, "arg1"    # Lretrofit/client/Response;

    .prologue
    .line 663
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->getContext()Landroid/content/Context;
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$2000(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Landroid/content/Context;

    move-result-object v1

    const-string v2, "CommunityEditAppSuccess"

    invoke-static {v1, v2}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 665
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # invokes: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->hideDialog()V
    invoke-static {v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$1300(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)V

    .line 666
    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    .line 667
    .local v0, "data":Landroid/content/Intent;
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    const-string v2, "app"

    invoke-virtual {p1, v2}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;

    move-result-object v2

    invoke-static {v2}, Lcom/brixd/niceapp/community/model/CommunityAppModel;->parseAppModel(Lorg/json/JSONObject;)Lcom/brixd/niceapp/community/model/CommunityAppModel;

    move-result-object v2

    # setter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mAppModel:Lcom/brixd/niceapp/community/model/CommunityAppModel;
    invoke-static {v1, v2}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$702(Lcom/brixd/niceapp/community/activity/PublishAppActivity;Lcom/brixd/niceapp/community/model/CommunityAppModel;)Lcom/brixd/niceapp/community/model/CommunityAppModel;

    .line 668
    const-string v1, "AppModel"

    iget-object v2, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    # getter for: Lcom/brixd/niceapp/community/activity/PublishAppActivity;->mAppModel:Lcom/brixd/niceapp/community/model/CommunityAppModel;
    invoke-static {v2}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->access$700(Lcom/brixd/niceapp/community/activity/PublishAppActivity;)Lcom/brixd/niceapp/community/model/CommunityAppModel;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    .line 669
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    const/16 v2, 0x3e9

    invoke-virtual {v1, v2, v0}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->setResult(ILandroid/content/Intent;)V

    .line 670
    iget-object v1, p0, Lcom/brixd/niceapp/community/activity/PublishAppActivity$15;->this$0:Lcom/brixd/niceapp/community/activity/PublishAppActivity;

    invoke-virtual {v1}, Lcom/brixd/niceapp/community/activity/PublishAppActivity;->finish()V

    .line 671
    return-void
.end method
